<?php /*a:2:{s:65:"/www/wwwroot/pay.rym.best/application/seller/view/index/main.html";i:1563242552;s:68:"/www/wwwroot/pay.rym.best/application/seller/view/common/head_s.html";i:1563242550;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo htmlentities($title); ?>-<?php echo htmlentities($sys['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="<?php echo htmlentities($sys['key']); ?>">
    <meta name="description" content="<?php echo htmlentities($sys['des']); ?>">
    <link rel="shortcut icon" href="/favicon.ico"/>  
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/user/css/main.css">
    <link rel="stylesheet" href="/static/common/css/font.css" media="all">
</head>
  
<div class="main">
    <div class="userinfo">
        <div class="avatar"><img src="/static/user/images/avatar.jpg" alt="<?php echo htmlentities($seller['username']); ?>"></div>
        <div class="infos">
            <div class="pull-left">
                <?php if($seller['level'] != 2): ?>
                <li><span class="value">商户联系姓名：</span><span class="name"><?php echo htmlentities($seller['username']); ?></span></li>
                <li><span class="value">手机号：</span><span class="value"><?php echo htmlentities($seller['mobile']); ?></span></li>
                <li><span class="value">SHOPID：</span><span class="value"><?php echo htmlentities($seller['id']); ?></span></li>  
                <li><span class="value">APPID：</span><span class="value"><?php echo htmlentities($seller['appid']); ?></span></li>  
                <li><span class="value">APPKEY：</span><span class="value"><?php echo htmlentities($seller['appkey']); ?></span></li> 
                <?php else: ?>
                <li><span class="value">商户代理联系姓名：</span><span class="name"><?php echo htmlentities($seller['username']); ?></span></li>
                <li><span class="value">手机号：</span><span class="value"><?php echo htmlentities($seller['mobile']); ?></span></li>
                <?php endif; ?> 
            </div> 
            <div class="pull-right"><div class="banks"><a href="<?php echo url('pay/index/index',['appid'=>$seller['appid'],'shopid'=>$seller['id']]); ?>" target="_blank"><i class="icon icon-credit-card"></i>商户收银台</a></div></div>
        </div> 
    </div> 
    <div class="home_pan">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="layui-icon">&#xe63c;</i>订单统计<em class="pull-right">单位：个</em></div>
                    <div class="layui-card-body">
                        <div class="layui-col-xs6"><span class="name">待处理</span><span class="value"><?php echo htmlentities($cdata['order_no']); ?></span></div> 
                        <div class="layui-col-xs6"><span class="name">全部订单</span><span class="value"><?php echo htmlentities($cdata['order_all']); ?></span></div>  
                    </div>
                </div>
            </div>
            <div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="layui-icon">&#xe65e;</i>财务汇总<em class="pull-right">单位：元</em></div>
                    <div class="layui-card-body">
                        <div class="layui-col-xs6"><span class="name">累计收款</span><span class="value"><?php echo htmlentities($cdata['order_money']); ?></span></div>  
                        <?php if($seller['level'] != 2): ?> 
                        <div class="layui-col-xs6"><span class="name">支付手续费</span><span class="value"><?php echo htmlentities($cdata['order_money_pay']); ?></span></div> 
                        <?php else: ?>
                        <div class="layui-col-xs6"><span class="name">我的收入</span><span class="value"><?php echo htmlentities($cdata['income']); ?></span></div> 
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <?php if($seller['level'] != 2): ?>
            <div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="layui-icon">&#xe857;</i>通道统计<em class="pull-right">单位：个</em></div>
                    <div class="layui-card-body">
                        <div class="layui-col-xs6"><span class="name">激活的通道</span><span class="value"><?php echo htmlentities($cdata['channel_yes']); ?></span></div> 
                        <div class="layui-col-xs6"><span class="name">全部通道</span><span class="value"><?php echo htmlentities($cdata['channel_all']); ?></span></div>    
                    </div>
                </div>
            </div>
            <?php endif; ?>
        </div>
    </div>
    <div class="layui-card-header">今日订单</div> 
    <!-- 未处理的订单 -->
    <div class="home_order"> 
        <table class="layui-table layui-hide" id="orderlist" lay-filter="listss"></table>
    </div>
    <!-- 未处理的订单 END-->
</div> 
<!-- <script type="text/html" id="payinfo"> 
    {{# if(d.bankid){ }}<div onmouseover="layer.tips('{{d.bank_name}}<br>收款账号：{{d.bank_no}}<br>支付时间：{{d.paytime}}',this,{area: 'auto',tips: [1, '#333']});" onmouseout="layer.closeAll();">{{d.payname}}</div>{{# } }} 
</script> -->
<script src="/static/plugins/layui/layui.js"></script>
<script>
    layui.use(['table','form'], function() {
        var table = layui.table,form = layui.form, $ = layui.jquery;
        var tableIn = table.render({
            id: 'listss',
            elem: '#orderlist',
            url: '<?php echo url("order/index"); ?>',
            method: 'post', 
            page: true,
            cols: [[ 
                {field: 'orderid', title: '平台订单号',align: 'center', width:138, fixed: true},
                {field: 'cionname', title: '币种名称',align: 'center', width: 120, fixed: true},
                {field: 'money', title: '订单金额',align: 'center', width: 120, fixed: true}, 
                {field: 'price', title: '单价/CNY',align: 'center', width: 100},
                {field: 'number', title: '数量',align: 'center', width: 100},
                {field: 'state_name', title: '订单状态',align: 'center', width: 100},  
                {field: 'payname', title: '支付信息',align: 'center', width: 100}, 
                {field: 'fei_shop', title: '手续费',align: 'center', width: 90},  
                {field: 'channelname', title: '所属通道',align: 'center', width: 120}, 
                {field: 'shopname', title: '所属商户',align: 'center', width: 100}, 
                {field: 'orderid_out', title: '商户订单号',align: 'center', width: 150},               
                {field: 'addtime', title: '提交时间',align: 'center', width: 142}, 
                {field: 'note', title: '备注信息',align: 'center', width: 120},  
            ]],
            limit: 10,
            where: {timequan:'today'}
        });   
    });  
</script>
</body>
</html>